//
//  WBImageView.h
//  WBImageView
//
//  Created by Tec_one on 15/12/16.
//  Copyright (c) 2015年 徐锐. All rights reserved.
//

#import <UIKit/UIKit.h>

@class WBImageViewItem;
@class WBTapGestureRecognizer;

@interface WBImageView : UIView

@property (nonatomic,strong)NSArray *imageUrls;//图片地址数组

@property (nonatomic,strong)NSMutableArray *items;//管理图片item的数组

@end

#pragma mark ----------------------------------------------------------------------------------------------

/**
 *  子类化的imageview
 */
@interface WBImageViewItem : UIImageView

@property (nonatomic,assign) int index;//自身的下标

@property (nonatomic,assign) CGRect originFrame;//保存自己的frame

- (instancetype)initWithFrame:(CGRect)frame withTarget:(id)target action:(SEL)action;

@end

#pragma mark ----------------------------------------------------------------------------------------------


@interface WBTapGestureRecognizer : UITapGestureRecognizer

@property (nonatomic,assign)int index;//传递item的下标



@end